diff -Nuar a/src/libsysprof/sysprof-symbol-resolver.c b/src/libsysprof/sysprof-symbol-resolver.c
--- a/src/libsysprof/sysprof-symbol-resolver.c	2021-09-22 02:42:14.530286000 +0300
+++ b/src/libsysprof/sysprof-symbol-resolver.c	2021-09-22 16:25:21.683854702 +0300
@@ -20,6 +20,8 @@
 
 #include "config.h"
 
+#include <unistd.h>
+
 #include "sysprof-platform.h"
 #include "sysprof-symbol-resolver.h"
 
